package org.example;

public class Test {
    public static void main(String[] args) {
        show(new Sub());
    }
    public static void show(Super s){
        s.test();
    }
}

class Super{
    public void test(){
        System.out.println("父类test()");
    }
}
class Sub extends Super{
    public void test(){
        System.out.println("子类test()");
    }

}
